package com.nineclock.system.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.nineclock.attendance.dto.DepartmentOrUserSimpleDTO;
import com.nineclock.system.dto.SysDepartmentDTO;
import com.nineclock.system.pojo.SysDepartment;

import java.util.List;

public interface SysDepartmentService extends IService<SysDepartment> {

    /*
     * 查询全部部门列表
     * @return
     */
    List<SysDepartmentDTO> findDeptList();
    List<SysDepartment> findAllDept();
    List<SysDepartmentDTO> findDeptList(Long companyId, Long parentId);

    List<DepartmentOrUserSimpleDTO> findDeptListByParentId(Long id);
    public List<Long> departmentIdList(List<Long> departmentIdList,Long id);
}